package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 菜品口味关系表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("dish_flavor")
public class DishFlavor {
    @TableId(type = IdType.ASSIGN_ID)//雪花算法
    private Long id;//主键
    private Long dishId;//菜品Id
    private String name;//口味名称
    private String value;//口味数据list
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
    private Long createUser;// 创建人
    private Long updateUser;//修改人
    private Integer isDeleted;//是否删除
}
